package com.example.demo.controller;

import com.example.demo.service.BlogService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
@Controller
public class DeleteController {
    @Resource
    private BlogService blogService;

    @RequestMapping("/delete")
    public Object deleteByBId(String blogId) {
        blogService.deleteByBId(blogId);
        return "/home.html";
    }
}
